Page({
    data: {
        tabsList:['套图','单图','定制'],
        index:0,
        tabs:1,
        show:true,
        currents:0,
        pictureList:[]


    },
    onLoad(e){
        wx.request({
            url:'https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/gxh/list.json',

            success:res=>{
                console.log(res)
                this.setData({
                    pictureList:res.data.pictureList
                })
            }

        })
    },
    bindtabs(e){
        console.log(e)
        this.setData({
            tabs:e.currentTarget.dataset.tabs
        })
    },

    sendChange: function (e) {
        let id = e.currentTarget.id
        console.log('id:',id)
        wx.navigateTo({
            url:'/pages/pictures/pictures?id='+id
        })
    },
    seeImage(e){
        let id = e.currentTarget.id
        console.log('id1',id)
        wx.navigateTo({
            url:'/pages/onlyImage/onlyImage?id='+id
        })
    },
    seearticle(e){
        let id = e.currentTarget.id
        console.log('id2',id)
        wx.navigateTo({
            url:'/pages/article/article?id='+id
        })
    }

});
//